
<!--
	user list !
-->
<h3>{{rootColumnName}}
   <small>{{rootColumnPrompt}}</small>
</h3>
<div  ng-controller="mobileUserManageCtrl" class="panel panel-default">

	<div class="panel-heading">
		<form class="form-inline">
			<div class="form-group">
				<label for="">{{regionSelectName}} : </label>
				<select class="custom-css form-control" ng-model="regionSelectValue" ng-change="dataChange_1()" ng-options="regionSelectValue.name for regionSelectValue in regionTypes"></select>
				<select style="width: 100px" class="custom-css form-control" ng-model="regionSelectValue_2" ng-change="dataChange()" ng-options="regionSelectValue_2.name for regionSelectValue_2 in regionSelectValue.cityList"></select>
			</div>
			<div class="form-group">
				<label for="">{{industrySelectName}} : </label>
				<select class="custom-css form-control" ng-model="industrySelectValue" ng-change="dataChange_2()" ng-options="industrySelectValue.name for industrySelectValue in industyList"></select>
				<select class="custom-css form-control" ng-model="industrySelectValue_2" ng-change="dataChange()" ng-options="industrySelectValue_2.name for industrySelectValue_2 in industrySelectValue.children"></select>
			</div>
			<div class="form-group">
				<label for="">{{userSelectName}} : </label>
				<select class="custom-css form-control"  ng-model="userSelectValue" ng-change="dataChange()" ng-options="userSelectValue._value_ for userSelectValue in userType" >
				</select>
			</div>
			<div class="form-group">
				<label for="">{{pagecoount}} : </label>
				<select class="custom-css form-control" ng-model="pageSelectValue" ng-change="dataChange_page()" ng-options="pageSelectValue._value_ for pageSelectValue in pageTypes"></select>
			</div>
			<!-- 职位 -->
			<!--<div class="form-group col-md-offset-1">
				<label for="">{{positionSelectName}} : </label>
				<select class="custom-css form-control" ng-model="positionSelectValue" ng-change="dataChange_3()" ng-options="positionSelectValue.name for positionSelectValue in jobPositionList"></select>
				<select class="custom-css form-control" ng-model="positionSelectValue_2" ng-change="dataChange()" ng-options="positionSelectValue_2.name for positionSelectValue_2 in positionSelectValue.children"></select>
			</div>-->
		</form>
		<form class="form-inline" style="margin-top: 20px">
			<div class="form-group">
				<label for="">{{fieldSelectName}} : </label>
				<select class="custom-css form-control"  ng-model="fieldSelectValue" ng-change="dataChange()" ng-options="fieldSelectValue.name for fieldSelectValue in realmList" >
				</select>
				<label for="searchInput"></label>
				<input type="text" ng-keyup="dataEvent($event)" ng-model="searchKey" class="form-control" style="width: 250px" id="searchInput" placeholder="{{searchplaceholder}}">
			</div>
			<div class="form-group">
				<label for="">{{sortSelectName}} : </label>
				<select class="custom-css form-control" ng-model="sortSelectValue" ng-change="dataChange()" ng-options="sortSelectValue._value_ for sortSelectValue in sortTypes"></select>
			</div>
			<div class="form-group">
				<label for="">{{thirdSelectName}}: </label>
				<select class="custom-css form-control" ng-model="thirdSelectValue" ng-change="dataChange()" ng-options="thirdSelectValue._value_ for thirdSelectValue in thirdTypes"></select>
			</div>
			<button type="button" ui-sref="cms.addMobileUser" class="btn btn-labeled btn-success pull-right">
               	<span class="btn-label">
               		<i class="fa fa-plus"></i>
               	</span>新建用户
			</button>
		</form>
	</div>
	<div  class="topic {{t}}">
		<span ng-click="hide()">×</span>
		<div id="div">
			<ul id="ul">
				<li  ng-repeat="list in messageFromUsers" class="{{list.isAdmin | function_class}}" >
					<div>
						<img ng-show="!list.isAdmin" ng-click="photoZoom(list.user.headURL)" ng-src="{{list.user.headURL}}" title="{{list.user.name}}"/>
						<img ng-show="list.isAdmin"   ng-src="app/img/error-err.png" title="成长小助手"/>
						<b ng-show="!list.isAdmin">{{list.user.name}}</b>
						<b ng-show="list.isAdmin">成长小助手</b>
						<span>{{list.createTime}}</span>
					</div>
					<img ng-click="photoZoom(list.image)" ng-if="list.isPic && (list.imageUrl=='' || list.imageUrl==undefined)" ng-src="{{list.image}}" alt=""/>
					<p ng-if="!list.isPic">
						{{list.content}}
					</p>

					<img ng-if="list.isPic && list.imageUrl!='' && list.imageUrl!=undefined "  ng-click="photoZoom(list.imageUrl)"  ng-src="{{list.imageUrl}}">

				</li>
				<div style="clear:both"></div>
				<!--<li  ng-repeat="list in messageFromUsers" class="{{list.isAdmin | function_class}}" >-->
				<!--<div>-->
				<!--<img ng-src="{{list.isAdmin | function_img}}" alt=""/>-->
				<!--<b>{{list.isAdmin | function_name}}</b>-->
				<!--<span>{{list.createTime}}</span>-->
				<!--</div>-->
				<!--<img ng-click="photoZoom(list.image)" ng-if="list.isPic" ng-src="{{list.image}}" alt=""/>-->
				<!--<p ng-if="!list.isPic">-->
				<!--{{list.content}}-->
				<!--</p>-->
				<!--</li>-->
				<!--<li class="li2">-->
				<!--<div>-->
				<!--<img src="app/img/error-err.png" alt=""/>-->
				<!--<b>李四</b>-->
				<!--<span>2012-12-12</span>-->
				<!--</div>-->
				<!--<p>-->
				<!--<img src="app/img/error-err.png" alt=""/>-->
				<!--他坐在公交车上，手里抓着一直甘蔗吃了起来，随口一吐掉在了公交车地板 上。车上的人纷纷指责。他却嚷道:“怎么了,还不让吃了吗,看什么看, ? 他走在路上，月黑风高，一个彪形大汉手持一把刀窜了出来:“抢劫～”他吓 得不敢动弹哀求道:“我把钱都给你，请别伤害我～ ? 他六点多就醒了，洗漱完毕。-->
				<!--</p>-->
				<!--</li>-->
				<!--<li class="li1">-->
				<!--<div>-->
				<!--<img src="app/img/error-err.png" alt=""/>-->
				<!--<b>张三</b>-->
				<!--<span>2012-12-12</span>-->
				<!--</div>-->
				<!--<p>-->
				<!--他坐在公交车上，-->
				<!--</p>-->
				<!--</li>-->
				<!--<li class="li2">-->
				<!--<div>-->
				<!--<img src="app/img/error-err.png" alt=""/>-->
				<!--<b>李四</b>-->
				<!--<span>2012-12-12</span>-->
				<!--</div>-->
				<!--<p>-->
				<!--他坐在公交车上，手里抓着一直甘蔗吃了起来，随口一吐掉在了公交车地板 上。车上的人纷纷指责。他却嚷道:“怎么了,还不让吃了吗,看什么看, ? 他走在路上，月黑风高，一个彪形大汉手持一把刀窜了出来:“抢劫～”他吓 得不敢动弹哀求道:“我把钱都给你，请别伤害我～ ? 他六点多就醒了，洗漱完毕。-->
				<!--</p>-->
				<!--</li>-->
			</ul>
		</div>

		<form class="form-validate form-horizontal"  name="updateForm" ng-submit="submitForm(updateForm.$valid)">
			<div style="margin:5px 10px" class="input-group">
				<!--<img  ng-hide="pic" ng-src="{{picUrl}}" class="uib1" err-src="app/img/error-err.png" alt="缩略图图片" title="更换图片"/>-->
				<a ng-click=""><img  ng-class="pic==''?'':'uib1'"  ngf-src="pic" ngf-background="pic" /></a>
				<button class="btn btn-primary" ngf-select ng-model="pic" ngf-pattern="'image/*'"  ngf-max-size="20MB" ngf-min-height="1" >选择图片</button >
				<button ng-click="send()"  class="btn btn-primary">发送</button>
			</div>

			<textarea ng-focus="blur()" id="txt" ng-maxlength="200" style="float:left;border-radius:5px;padding:10px;margin-left:10px;max-width:75%;border:1px solid #ddd"  cols="50" rows="2" ng-model="content" name="content"></textarea>
			<button ng-click="send()" style="float:right;margin-top:10px;margin-right:20px" class="btn btn-primary navbar-right ">发布</button>
			<p class="redBorder" ng-if="updateForm.content.$error.required && updateForm.content.$touched">输入不能为空</p>
			<p class="redBorder" ng-if="updateForm.content.$error.maxlength && updateForm.content.$touched">不能超过200字</p>
		</form>
	</div>
	<div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
		<table class="table table-striped table-condensed">
			<thead>
				<tr>
              		<th>姓名</th>
              		<th>影响力</th>
              		<th>好友数量</th>
					<th>公司</th>
              		<th>行业</th>
              	<!--<th>二级</th>-->
              		<th>职位</th>
              		<th>入会时间</th>
              		<th>会期时效</th>
              		<th>注册时间</th>
              		<th>最后登录时间</th>
				<!--<th>二级</th>-->
              		<th>操作</th>
          		</tr>
			</thead>
			<tbody>
				<!-- repeat begin -->
              	<tr ng-repeat="userItem in mobileUserList ">
                  	<td>{{userItem.user.name | null_value_filter}}</td>
                  	<td>{{userItem.score}}</td>
                  	<td>{{userItem.friendsCount}}</td>
                  	<!--<td ng-bind='findParentId(regionTypes,"cityList","code",userItem.area,userItem.areaName)'></td>-->
                  	<td>{{userItem.companyName | null_value_filter}}</td>
                  	<td>{{userItem.industyName | null_value_filter}}</td>
                  	<td>{{userItem.positionName | null_value_filter}}</td>
                  	<!--<td>{{userItem.time | null_value_filter}}</td>-->
                  	<!--<td>{{userItem.Time1| null_value_filter}}</td>-->
                  	<td>{{userItem.memberCreateTime | null_value_filter}}</td>
                  	<td>{{userItem.memberTime | null_value_filter}}</td>
                  	<td>{{userItem.user.registTime | null_value_filter}}</td>
                  	<td>{{userItem.lastDoTime | null_value_filter}}</td>
                  	<td>
                      	<a tooltip="查看" tooltip-trigger="mouseenter" class="btn btn-xs btn-primary" ui-sref="cms.mobileUserDetail({ userId : userItem.user.userId, areaCode : regionStatus(), positionId : positionStatus(), industyId : industryStatus(), realmId : fieldSelectValue.realmId, searchKey : searchKey, sortType : sortSelectValue.sortType, page : turnPage.currentPage, size : pageSelectValue.pageType})"><i class="fa fa-eye"></i></a>
                      	<button tooltip="加入黑名单" tooltip-trigger="mouseenter" class="btn btn-xs btn-warning" ng-click="addBlackList(userItem.user.userId)" ng-disabled="userItem.user.status==1"><i class="fa fa-trash-o"></i></button>
						<a tooltip="回复" tooltip-trigger="mouseenter" class="btn btn-xs btn-success"  ng-click="operate(userItem.user.userId)"><i class="fa fa-commenting"></i></a>
                  	</td>

             	 </tr>
             	 <!-- repeat end -->
			</tbody>
		</table>
		<p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{pageSelectValue.pageType*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
		<pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
			num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
		</pagination>
	</div>
</div>